package com.czk.model.factory.simplefactory.pizzastore.absfactory;

import com.czk.model.factory.simplefactory.pizzastore.pizza.Pizza;

public class BjFactory implements AbsFactory {
    @Override
    public Pizza createPizza(String orderType) {
        Pizza pizza=null;
        if (orderType.equals("chess")){
            pizza=new BjChessPizza();
            pizza.setName("bjchess");
        }else if (orderType.equals("perper")){
            pizza=new BjPeperPizaa();
            pizza.setName("peper");
        }
        return pizza;
    }
}
